/*DATASET: Höhne, J.K., Ziller, C., & Lenzner, T. (2023). Investigating respondents' willingness to participate in video-based web surveys */


*******************************
*SAMPLE CHARACTERISTICS CHAPTER
*******************************

sum age
tab gender
tab education
tab device


****************************
*RESEARCH QUESTION 1 CHAPTER
****************************

*answer distribution question delivery
tab question_delivery

*answer distribution question answering
tab question_answering


****************************
*RESEARCH QUESTION 2 CHAPTER
****************************

*preparing the regression variables
gen question_delivery_reg = question_delivery
replace question_delivery_reg =. if question_delivery == 5

gen question_answering_reg = question_answering
replace question_answering_reg =. if question_answering >= 5

gen female = 1 if gender == 2
replace female = 0 if gender == 1
replace female =. if gender == 3

gen smartphone = 1 if device == 2 
replace smartphone = 0 if device == 1 | device == 3

*regression on question delivery
reg question_delivery_reg technology openness conscientiousness extraversion agreeableness neuroticism interest difficulty topic_sensitivity age i.female i.education i.smartphone

*regression on question answering
reg question_answering_reg technology openness conscientiousness extraversion agreeableness neuroticism interest difficulty topic_sensitivity age i.female i.education i.smartphone